import Vue from 'vue'
import VueLazyload from 'vue-lazyload' 
import App from './App.vue'
import router from './router'
import store from './store'
import TypeNav from "./components/TypeNav"

// 引入mock才会生效
import "./mock"

//在全局引入默认样式
import './styles/reset.css'
import "./styles/iconfont.css";

//全局注册组件
Vue.component("TypeNav",TypeNav)

Vue.use(VueLazyload,{
  preLoad:1.3,
  error:"/images/IMG_20190525_091442.jpg",
  loading:"images/loading.gif",
  attempt:1
})
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
